package com.smedi.ismedi.authoritymanagement.api.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: xulinjun
 * @Date: 2021-7-2 10:16
 */
@Data
public class ChangePasswordRequest implements Serializable {
    @ApiModelProperty(value = "原始密码", required = true)
    @NotBlank(message = "原始密码为空！")
    private String password;

    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码为空！")
    private String newPassword;

    @ApiModelProperty(value = "用户key", required = true)
    @NotBlank(message = "用户key为空！")
    private String userKey;

    @ApiModelProperty(value = "人员id", required = true)
    @NotNull(message = "人员id为空！")
    private Long personId;
}
